swing by (somewhere) on the way

Translations
passer par (quelque part) en chemin
Definitions
To briefly stop at a place while traveling to another destination, usually as part of a planned route or errand.